/**
 * @author zhaoren
 * @version 1.0
 * @description TODO
 * @date 2020/8/10 15:48
 **/
public abstract class Component {

    protected String name;

    public Component(String name){
        this.name = name;
    }

    /**
     * 添加子节点
     * @param component
     */
    public abstract void add(Component component);

    /**
     * 删除子节点
     * @param component
     */
    public abstract void remove(Component component);

    /**
     * 显示子节点
     * @param depth
     */
    public abstract void display(int depth);
}
